﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Example02.aspx.cs" Inherits="Chapter26.Example02" %>

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>代码清单 26-2 使用 Document 对象来获取元数据</title>
    <meta name="author" content="Adam Freeman" />
    <meta name="description" content="A simple example" />
</head>
<body>
    <script>
        document.writeln("<pre>URL: " + document.URL);
        document.writeln("characterSet: " + document.characterSet);
        document.writeln("charset: " + document.charset);
        document.writeln("compatMode: " + document.compatMode);
        document.writeln("defaultCharset: " + document.defaultCharset);
        document.writeln("dir: " + document.dir);
        document.writeln("domain: " + document.domain);
        document.writeln("lastModified: " + document.lastModified);
        document.writeln("referrer: " + document.referrer);
        document.writeln("title: " + document.title);
        document.write("</pre>");
    </script>
</body>
</html>
